package com.firefighting.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.firefighting.dao.BuildingFunctionMapper;
import com.firefighting.entity.BuildingFunction;

@Service
public class BuildingFunctionService
{
	@Autowired
	private BuildingFunctionMapper buildingFunctionMapper;
	
	/** zhyan 获取建筑物使用功能全集 */
	public List<BuildingFunction> queryAllFunction()
	{
		return buildingFunctionMapper.selectAllFunction();
	}
	
	/** zhyan 根据id查询建筑物功能 */
	public BuildingFunction queryBuildingFunction(int id)
	{
		return buildingFunctionMapper.selectByPrimaryKey(id);
	}
}